CFLAGS = -Wall -O2 -pipe
LDFLAGS = -s

HTML_LIST = page_part1.html page_part2.html page_part3.html

all: soh

soh: file.o html.o html_templates.o malloc.o network.o unix.o utils.o
soh.o: soh.h 

file.o: soh.h 
html.o: html.h soh.h
network.o: soh.h
unix.o: soh.h unix.h

html_templates.o: ${HTML_LIST}
	${LD} -r -b binary -z noexecstack -o html_templates.o ${HTML_LIST}

.PHONY: clean

clean:
	rm -f *.o soh
